package com.metadata.springbootmetadata.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zhou
 * @version 1.0
 * @date 2024/1/9 - 01 - 09 - 10:51
 * @description com.metadata.springbootmetadata.config
 */

@Data
@ConfigurationProperties(prefix = MetadataApiProperties.PREFIX)
public class MetadataApiProperties {
    public static final String PREFIX="metadata";
    /**
     * 默认security 状态
     */
    private Boolean security = Boolean.FALSE;
    /**
     * 默认请求白名单
     */
    private String securityWhiteList = "127.0.0.1";
    /**
     * 默认文档白名单
     */
    private String swaggerWhiteList = "127.0.0.1";
    /**
     * 默认请求状态
     */
    private Boolean enable=Boolean.FALSE;
}
